<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/html" xmlns:shiro="http://www.w3.org/1999/xhtml"
      xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>
<body>
<!-- 开发环境版本，包含了有帮助的命令行警告 -->
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<!-- 官网提供的 axios 在线地址 -->
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.20.0-0/axios.min.js"></script>
<!--<input type="button" value="登录" onclick="@{/myc/toLogin}">-->
<div th:if="${session.user_session==null}">
    <a th:href="@{/myc/tologin}" class="button">登录</a><br>
    <a th:href="@{/myc/logout}" class="button">注销</a>
</div>
<div th:if="${session.user_session!=null}">
    <a th:href="@{/myc/myGrade(id=${session.id_session})}" class="button">我的成绩</a><br>
    <a th:href="@{/myc/gradeM}" class="button">管理成绩</a><br>
    <a th:href="@{/myc/toLogin}" class="button">管理学生</a><br>
</div>

</body>
</html>